package org.example.link_list;

public class ListNode {
    public int val; //数据域
    public ListNode next; //指针域
    public ListNode(){};
    public ListNode(int val){
        this.val=val;
    }
    public ListNode(int val,ListNode node){
        this.val = val;
        this.next = node;
    }
}
